package com.woniu.order.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName zy_shouhou
 */
@TableName(value ="zy_shouhou")
@Data
public class ZyShouhou implements Serializable {
    /**
     * 售后表id
     */
    @TableId
    private String id;

    /**
     * 订单id
     */
    private String oid;

    /**
     * 订单详情id
     */
    private String shOdid;

    /**
     * 用户id
     */
    private String shUserid;

    /**
     * 商品id
     */
    private String shProductid;

    /**
     * 商品信息（商品主要构成，可以是单个商品的名字，也可是组合商品的组合名或活动名称
     */
    private String productName;

    /**
     * 订单总金额
     */
    private BigDecimal orderAllmoney;

    /**
     * 退款金额
     */
    private BigDecimal tuikuanMoney;

    /**
     * 售后原因
     */
    private String shReason;

    /**
     * 售后单类型
     */
    private String shShtype;

    /**
     * 1已申请、2已关闭、3待退货、4已退货、5待退款、6已完成
     */
    private Integer shStatus;

    /**
     * 起始点
     */
    private String fromWhere;

    /**
     * 终点
     */
    private String toWhere;

    /**
     * 物流单号
     */
    private String wuliuId;

    /**
     * 售后单申请时间
     */
    private Date shCreatetime;

    /**
     * 备注
     */
    private String shRemark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ZyShouhou other = (ZyShouhou) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOid() == null ? other.getOid() == null : this.getOid().equals(other.getOid()))
            && (this.getShOdid() == null ? other.getShOdid() == null : this.getShOdid().equals(other.getShOdid()))
            && (this.getShUserid() == null ? other.getShUserid() == null : this.getShUserid().equals(other.getShUserid()))
            && (this.getShProductid() == null ? other.getShProductid() == null : this.getShProductid().equals(other.getShProductid()))
            && (this.getProductName() == null ? other.getProductName() == null : this.getProductName().equals(other.getProductName()))
            && (this.getOrderAllmoney() == null ? other.getOrderAllmoney() == null : this.getOrderAllmoney().equals(other.getOrderAllmoney()))
            && (this.getTuikuanMoney() == null ? other.getTuikuanMoney() == null : this.getTuikuanMoney().equals(other.getTuikuanMoney()))
            && (this.getShReason() == null ? other.getShReason() == null : this.getShReason().equals(other.getShReason()))
            && (this.getShShtype() == null ? other.getShShtype() == null : this.getShShtype().equals(other.getShShtype()))
            && (this.getShStatus() == null ? other.getShStatus() == null : this.getShStatus().equals(other.getShStatus()))
            && (this.getFromWhere() == null ? other.getFromWhere() == null : this.getFromWhere().equals(other.getFromWhere()))
            && (this.getToWhere() == null ? other.getToWhere() == null : this.getToWhere().equals(other.getToWhere()))
            && (this.getWuliuId() == null ? other.getWuliuId() == null : this.getWuliuId().equals(other.getWuliuId()))
            && (this.getShCreatetime() == null ? other.getShCreatetime() == null : this.getShCreatetime().equals(other.getShCreatetime()))
            && (this.getShRemark() == null ? other.getShRemark() == null : this.getShRemark().equals(other.getShRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOid() == null) ? 0 : getOid().hashCode());
        result = prime * result + ((getShOdid() == null) ? 0 : getShOdid().hashCode());
        result = prime * result + ((getShUserid() == null) ? 0 : getShUserid().hashCode());
        result = prime * result + ((getShProductid() == null) ? 0 : getShProductid().hashCode());
        result = prime * result + ((getProductName() == null) ? 0 : getProductName().hashCode());
        result = prime * result + ((getOrderAllmoney() == null) ? 0 : getOrderAllmoney().hashCode());
        result = prime * result + ((getTuikuanMoney() == null) ? 0 : getTuikuanMoney().hashCode());
        result = prime * result + ((getShReason() == null) ? 0 : getShReason().hashCode());
        result = prime * result + ((getShShtype() == null) ? 0 : getShShtype().hashCode());
        result = prime * result + ((getShStatus() == null) ? 0 : getShStatus().hashCode());
        result = prime * result + ((getFromWhere() == null) ? 0 : getFromWhere().hashCode());
        result = prime * result + ((getToWhere() == null) ? 0 : getToWhere().hashCode());
        result = prime * result + ((getWuliuId() == null) ? 0 : getWuliuId().hashCode());
        result = prime * result + ((getShCreatetime() == null) ? 0 : getShCreatetime().hashCode());
        result = prime * result + ((getShRemark() == null) ? 0 : getShRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", oid=").append(oid);
        sb.append(", shOdid=").append(shOdid);
        sb.append(", shUserid=").append(shUserid);
        sb.append(", shProductid=").append(shProductid);
        sb.append(", productName=").append(productName);
        sb.append(", orderAllmoney=").append(orderAllmoney);
        sb.append(", tuikuanMoney=").append(tuikuanMoney);
        sb.append(", shReason=").append(shReason);
        sb.append(", shShtype=").append(shShtype);
        sb.append(", shStatus=").append(shStatus);
        sb.append(", fromWhere=").append(fromWhere);
        sb.append(", toWhere=").append(toWhere);
        sb.append(", wuliuId=").append(wuliuId);
        sb.append(", shCreatetime=").append(shCreatetime);
        sb.append(", shRemark=").append(shRemark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}